
<h1><span class="yiyi-st" id="yiyi-13">numpy.matrix.any</span></h1>
        <blockquote>
        <p>原文：<a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.matrix.any.html">https://docs.scipy.org/doc/numpy/reference/generated/numpy.matrix.any.html</a></p>
        <p>译者：<a href="https://github.com/wizardforcel">飞龙</a> <a href="http://usyiyi.cn/">UsyiyiCN</a></p>
        <p>校对：（虚位以待）</p>
        </blockquote>
    
<dl class="method">
<dt id="numpy.matrix.any"><span class="yiyi-st" id="yiyi-14"> <code class="descclassname">matrix.</code><code class="descname">any</code><span class="sig-paren">(</span><em>axis=None</em>, <em>out=None</em><span class="sig-paren">)</span><a class="reference external" href="http://github.com/numpy/numpy/blob/v1.11.3/numpy/matrixlib/defmatrix.py#L686-L707"><span class="viewcode-link">[source]</span></a></span></dt>
<dd><p><span class="yiyi-st" id="yiyi-15">测试沿给定轴的任何数组元素是否为True。</span></p>
<p><span class="yiyi-st" id="yiyi-16">有关完整文档，请参阅<a class="reference internal" href="numpy.any.html#numpy.any" title="numpy.any"><code class="xref py py-obj docutils literal"><span class="pre">numpy.any</span></code></a>。</span></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name">
<col class="field-body">
<tbody valign="top">
<tr class="field-odd field"><th class="field-name"><span class="yiyi-st" id="yiyi-17">参数：</span></th><td class="field-body"><p class="first"><span class="yiyi-st" id="yiyi-18"><strong>axis</strong>：int，可选</span></p>
<blockquote>
<div><p><span class="yiyi-st" id="yiyi-19">执行逻辑或运算的轴</span></p>
</div></blockquote>
<p><span class="yiyi-st" id="yiyi-20"><strong>out</strong>：ndarray，可选</span></p>
<blockquote>
<div><p><span class="yiyi-st" id="yiyi-21">输出到现有数组而不是创建新数组，必须具有与预期输出相同的形状</span></p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name"><span class="yiyi-st" id="yiyi-22">返回：</span></th><td class="field-body"><p class="first"><span class="yiyi-st" id="yiyi-23"><strong>任何</strong>：bool，ndarray</span></p>
<blockquote class="last">
<div><p><span class="yiyi-st" id="yiyi-24">如果<em class="xref py py-obj">axis</em>为<code class="docutils literal"><span class="pre">None</span></code>，则返回单个布尔值；否则返回<a class="reference internal" href="numpy.ndarray.html#numpy.ndarray" title="numpy.ndarray"><code class="xref py py-obj docutils literal"><span class="pre">ndarray</span></code></a></span></p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
</dd></dl>
